import requests
import json
header = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36'
}

words = input("输入翻译内容：")

data = {
    'sug': words
}

url = 'https://fanyi.baidu.com/sug'

response = requests.post(url=url, headers=header,data=data)
obj=response.json()
print(obj['data'][0]['v'])